/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mx.kn.cstf2.actions;


import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

import java.sql.SQLException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

import kn.cstf2.global.Utils.CstF2Exception;
import kn.cstf2.implementation.Bean.*;
import kn.cstf2.implementation.Shared.ImplementationShared;
import kn.cstf2.transition.Bean.AsignIfownerStkBean;
import kn.cstf2.transition.Bean.TransitionBean;
import kn.cstf2.transition.Shared.TransitionShared;
import kn.mx.cstf2.actions.CommonActions;

import com.mx.kn.cstf2.actions.padre.Implementation;
import com.mx.kn.cstf2.actions.padre.Transition;
import com.mx.kn.cstf2.dto.HistoricoDto;
import com.mx.kn.cstf2.dto.JoindocumenttransitionBean;
import com.mx.kn.cstf2.dto.LastUpdateImplementation;
import com.mx.kn.cstf2.dto.LinksDto;
import com.mx.kn.cstf2.dto.UsuarioDto;
import com.mx.kn.cstf2.dts.JoindocumenttransitionDts;
import com.mx.kn.cstf2.service.ImplementationService;
import com.mx.kn.cstf2.service.MailService;
import com.mx.kn.cstf2.service.TransitionService;
import com.mx.kn.cstf2.utils.AccionesHistorico;
import com.mx.kn.cstf2.utils.FormatFecha;
import com.mx.kn.cstf2.utils.PlantillaNotifyStatus;
import com.mx.kn.cstf2.utils.TipoUsuarios;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * 
 * @author user1
 */

@Component("implementationAction")
@Scope(value = "session")
public class ImplementationAction extends ActionSupport {

	public static final String ERROR_SESSION = "errorSession";
	public static final String ERROR_KNKEY = "errorKnkey";
	private ArrayList<String> statusList = new ArrayList<String>();
	private String status = new String();
	private TransitionBean transitionBeanM = new TransitionBean();
	private TransitionBean transitionBean;
	private String clientInfo;
	private String CorreoIfOwnerInfo = new String();
	private Boolean exporta;
	private Boolean carrierChoise;
	private Boolean cielQuotationStatus;

	private Map<String, Object> sesion;
	private Transition transition;

	private UsuarioDto usuario;
	private Implementation implementation;
	private String lastUpdateStatusImplementation;
	private List<JoindocumenttransitionDts> estatusTransition;
	private List<LinksDto> listaLinks;

	private String link;
	private String description;
	private String displayName;
	private TransitionsBeanImp transitionsBeanImp;

	private boolean checkCop;
	private String dateCop;
	private String datepickerCop;
	private boolean intoCheckCop;

	private boolean checkContacts;
	private String dateContacts;
	private String datePickerContacts;
	private boolean intoCheckContacts;
	
	
	private boolean checkReporting;
	private String dateReporting;
	private String datePickerReporting;
	private boolean intoCheckReporting;
	
	
	
	private boolean checkScopeService;
	private String dateScopeService;
	private String datePickerScopeService;
	private boolean intoCheckScopeService;
	
		
	private boolean checkConditions;
	private String dateConditions;
	private String datePickerConditions;
	private boolean intoCheckConditions;
	
	
	
	private boolean checkCielId;
	private String dateCiel;
	private String datePickerCiel;
	private boolean intoCheckCiel;
	
	
	
	private boolean checkCQM;
	private String dateCielQM;
	private String datePickerCielQM;
	private boolean intoCheckCielQM;
	
	
	
	
	private boolean checkCC;
	private String dateCC;
	private String datePickerCC;
	private boolean intoCheckCC;
	
	
	
	private boolean checkWorking;
	private String dateWorking;
	private String datePickerdateWorking;
	private boolean intoCheckdateWorking;
	
	
	private boolean checkSOP;
	private String dateSOP;
	private String datePickerdateSOP;
	private boolean intoCheckdateSOP;
	
	
	
	
	private boolean checkKPI;
	private String dateKPI;
	private String datePickerdateKPI;
	private boolean intoCheckdateKPI;
	
	
	
	private boolean checkBC;
	private String dateBC;
	private String datePickerdateBC;
	private boolean intoCheckdateBC;
	
	private LastUpdateImplementation lastImplementationUpdates;
	private String lastUpdateLink;

	// spring
	@Autowired
	TransitionService transitionService;
	@Autowired
	ImplementationService implementationService;
	@Autowired 
	MailService mailService;

	public String getLastUpdateLink() {
		return lastUpdateLink;
	}

	public void setLastUpdateLink(String lastUpdateLink) {
		this.lastUpdateLink = lastUpdateLink;
	}
	
	public Boolean getCarrierChoise() {
		return carrierChoise;
	}

	public void setCarrierChoise(Boolean carrierChoise) {
		this.carrierChoise = carrierChoise;
	}

	public Boolean getCielQuotationStatus() {
		return cielQuotationStatus;
	}

	public void setCielQuotationStatus(Boolean cielQuotationStatus) {
		this.cielQuotationStatus = cielQuotationStatus;
	}

	public Boolean getExporta() {
		return exporta;
	}

	public void setExporta(Boolean exporta) {
		this.exporta = exporta;
	}

	private DateStatusTransitionsBean dateStatusTransitionsBean = new DateStatusTransitionsBean();
	private DateStatusTransitionsBean dateBean = new DateStatusTransitionsBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT1 = new JoindocumenttransitionBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT2 = new JoindocumenttransitionBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT3 = new JoindocumenttransitionBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT4 = new JoindocumenttransitionBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT5 = new JoindocumenttransitionBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT6 = new JoindocumenttransitionBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT7 = new JoindocumenttransitionBean();
	private JoindocumenttransitionBean joindocumenttransitionBeanT8 = new JoindocumenttransitionBean();

	public ImplementationAction() {

	}

	public TransitionsBeanImp getTransitionsBeanImp() {
		return transitionsBeanImp;
	}

	public void setTransitionsBeanImp(TransitionsBeanImp transitionsBeanImp) {
		this.transitionsBeanImp = transitionsBeanImp;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT1() {
		return joindocumenttransitionBeanT1;
	}

	public void setJoindocumenttransitionBeanT1(
			JoindocumenttransitionBean joindocumenttransitionBeanT1) {
		this.joindocumenttransitionBeanT1 = joindocumenttransitionBeanT1;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT2() {
		return joindocumenttransitionBeanT2;
	}

	public void setJoindocumenttransitionBeanT2(
			JoindocumenttransitionBean joindocumenttransitionBeanT2) {
		this.joindocumenttransitionBeanT2 = joindocumenttransitionBeanT2;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT3() {
		return joindocumenttransitionBeanT3;
	}

	public void setJoindocumenttransitionBeanT3(
			JoindocumenttransitionBean joindocumenttransitionBeanT3) {
		this.joindocumenttransitionBeanT3 = joindocumenttransitionBeanT3;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT4() {
		return joindocumenttransitionBeanT4;
	}

	public void setJoindocumenttransitionBeanT4(
			JoindocumenttransitionBean joindocumenttransitionBeanT4) {
		this.joindocumenttransitionBeanT4 = joindocumenttransitionBeanT4;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT5() {
		return joindocumenttransitionBeanT5;
	}

	public void setJoindocumenttransitionBeanT5(
			JoindocumenttransitionBean joindocumenttransitionBeanT5) {
		this.joindocumenttransitionBeanT5 = joindocumenttransitionBeanT5;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT6() {
		return joindocumenttransitionBeanT6;
	}

	public void setJoindocumenttransitionBeanT6(
			JoindocumenttransitionBean joindocumenttransitionBeanT6) {
		this.joindocumenttransitionBeanT6 = joindocumenttransitionBeanT6;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT7() {
		return joindocumenttransitionBeanT7;
	}

	public void setJoindocumenttransitionBeanT7(
			JoindocumenttransitionBean joindocumenttransitionBeanT7) {
		this.joindocumenttransitionBeanT7 = joindocumenttransitionBeanT7;
	}

	public JoindocumenttransitionBean getJoindocumenttransitionBeanT8() {
		return joindocumenttransitionBeanT8;
	}

	public void setJoindocumenttransitionBeanT8(
			JoindocumenttransitionBean joindocumenttransitionBeanT8) {
		this.joindocumenttransitionBeanT8 = joindocumenttransitionBeanT8;
	}

	public DateStatusTransitionsBean getDateStatusTransitionsBean() {
		return dateStatusTransitionsBean;
	}

	public void setDateStatusTransitionsBean(
			DateStatusTransitionsBean dateStatusTransitionsBean) {
		this.dateStatusTransitionsBean = dateStatusTransitionsBean;
	}

	public DateStatusTransitionsBean getDateBean() {
		return dateBean;
	}

	public void setDateBean(DateStatusTransitionsBean dateBean) {
		this.dateBean = dateBean;
	}

	public String getCorreoIfOwnerInfo() {
		return CorreoIfOwnerInfo;
	}

	public void setCorreoIfOwnerInfo(String CorreoIfOwnerInfo) {
		this.CorreoIfOwnerInfo = CorreoIfOwnerInfo;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public ArrayList<String> getStatusList() {
		return statusList;
	}

	public void setStatusList(ArrayList<String> statusList) {
		this.statusList = statusList;
	}

	private String statusselected;
	private String statusImplemSelected;

	public String getStatusImplemSelected() {
		return statusImplemSelected;
	}

	public void setStatusImplemSelected(String statusImplemSelected) {
		this.statusImplemSelected = statusImplemSelected;
	}

	public String getStatusselected() {
		return statusselected;
	}

	public void setStatusselected(String statusselected) {
		this.statusselected = statusselected;
	}

	private ArrayList<TransitionBean> transitionBeanArray;

	public ArrayList<TransitionBean> getTransitionBeanArray() {
		return transitionBeanArray;
	}

	public void setTransitionBeanArray(
			ArrayList<TransitionBean> transitionBeanArray) {
		this.transitionBeanArray = transitionBeanArray;
	}

	public String execute() {
		try {
			transitionsBeanImp = new TransitionsBeanImp();
			ActionContext contexto = ActionContext.getContext();
			sesion = contexto.getSession();
			this.setUsuario((UsuarioDto) sesion.get("usuarioSession"));
			Map<String, Object> sesion2 = contexto.getSession();

			// switch (this.getUsuario().getTipo()) {
			// case TipoUsuarios.USER_FS:
			// implementation = new ImplementationFS();
			// break;
			//
			// default:
			// break;
			// }

			switch (this.getUsuario().getTipo()) {
			case TipoUsuarios.USER_FS:
				implementation = new ImplementationFS();
				transition = new TransitionFS();
				transition.setTransitionBeanM((TransitionBean) sesion2.get("Knkey"));
				transition.getTransitionBeanM().setTipoTransition(TipoUsuarios.USER_FS);

				break;

			case TipoUsuarios.USER_FO:
				implementation = new ImplementationFO();
				transition = new TransitionFS();
				transition.setTransitionBeanM((TransitionBean) sesion2.get("Knkey"));
				transition.getTransitionBeanM().setTipoTransition(TipoUsuarios.USER_FO);

				break;

			case TipoUsuarios.USER_FA:
				implementation = new ImplementationFA();
				transition = new TransitionFS();
				transition.setTransitionBeanM((TransitionBean) sesion2.get("Knkey"));
				transition.getTransitionBeanM().setTipoTransition(TipoUsuarios.USER_FA);

				break;

			default:
				break;
			}

			// el Objeto implementation contiene un Objeto transition el cual
			// contiene los atributos de la transition
			implementation.setTransition((Transition) sesion.get("transition"));

			if (implementation.getTransition() instanceof TransitionFS) {
				implementation.setTransition((TransitionFS) sesion
						.get("transition"));
			} else if (implementation.getTransition() instanceof TransitionFO) {
				implementation.setTransition((TransitionFO) sesion
						.get("transition"));
			} else if (implementation.getTransition() instanceof TransitionFA) {
				implementation.setTransition((TransitionFA) sesion
						.get("transition"));
			}

			try {
				transitionBean = transitionService
						.getTransitionBeanIdKnkey((TransitionBean) sesion
								.get("Knkey"));
				transition.setDetallesPersonD(transitionService.getDataPersonalByIdPersonal(transition.getTransitionBeanM().getId()));
			} catch (SQLException e1) {

				e1.printStackTrace();
			}

			/*
			 * if (transitionBeanM.getKnkey() == null) { CstF2Exception ex = new
			 * CstF2Exception();
			 * 
			 * addFieldError("Not Knkey Found",
			 * "PorFavor Seleccione una Knkey: " + ex.getMessage()); MainShared
			 * mainShared = new MainShared();
			 * setTransitionBeanArray(mainShared.GetTransitionBeanArrayIdKnkey
			 * (usuario));
			 * 
			 * return ERROR_KNKEY; }
			 */

			this.setClientInfo(implementation.getTransition()
					.getT_clientesDataFromStkBean().getCompanyname()
					+ " - "
					+ implementation.getTransition()
							.getT_clientesDataFromStkBean().getComercialname());
			this.setCorreoIfOwnerInfo(implementation.getTransition()
					.getAsignIfownerStkBean().getIfownwer());

			getLastUpdateEstatus();
			lastImplementationUpdates = implementationService.getLastestUpdates(transitionBean.getId());
			try{
				lastUpdateLink = transitionBean.getLastUserUpdateLinksImplementation()+" - "+transitionBean.getLastDateUpdateLinksImplementation().toString();
			}
			catch(NullPointerException ex){
				lastUpdateLink = "Not updated yet";
			}
				

			TransitionShared transitionShared = new TransitionShared();
			ImplementationShared implementationShared = new ImplementationShared();

			// statusselected =
			// transitionShared.GetStatusSelected(transitionBeanM.getKnkey());
			// statusImplemSelected =
			// transitionShared.GetStatusImplementationSelected(transitionBeanM.getKnkey());
			//

			// setDateStatusTransitionsBean(implementationShared.GetDateOfStatusTransitions(transitionBeanM.getId()));
			//
			// dateBean =
			// implementationShared.GetFechaOfStatusTransitions(transitionBeanM.getId());

			//
			//

			try {
				estatusTransition = transitionService
						.getEstatusAndDateDocuments(transitionBean);
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

			// setJoindocumenttransitionBeanT1(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 1));
			// setJoindocumenttransitionBeanT2(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 2));
			// setJoindocumenttransitionBeanT3(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 3));
			// setJoindocumenttransitionBeanT4(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 4));
			// setJoindocumenttransitionBeanT5(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 5));
			// setJoindocumenttransitionBeanT6(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 6));
			// setJoindocumenttransitionBeanT7(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 7));
			// setJoindocumenttransitionBeanT8(implementationShared.GetStatusFechaArchivoFromJoindocumenttransition(transitionBeanM.getId(),
			// 8));
			//
			// setTransitionsBeanImp(implementationShared.GetAllRestInforT_transition(transitionBeanM.getId()));
		} catch (CstF2Exception ex) {

			addFieldError("KnkeyIncorrecta",
					"Ocurrio un Error: " + ex.getMessage());
			return ERROR_SESSION;
		}catch(NullPointerException e){
			return SUCCESS;
		}
		return SUCCESS;
	}

	  public LastUpdateImplementation getLastImplementationUpdates() {
		return lastImplementationUpdates;
	}

	public void setLastImplementationUpdates(
			LastUpdateImplementation lastImplementationUpdates) {
		this.lastImplementationUpdates = lastImplementationUpdates;
	}

	public String notifyStatusImplementation(){
		try {
			mailService.sendNotifyStatusMail(transition.getTransitionBeanM(), PlantillaNotifyStatus.NOTIFY_IMPLEMENTATION);
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	return SUCCESS;	
		
	}
	
	
	public String getStatusImplementation() {

		getEstatus();

		return SUCCESS;
	}

	private void getEstatus() {
		try {
			TransitionBean transitionBean = transitionService
					.getTransitionBeanIdKnkey((TransitionBean) sesion
							.get("Knkey"));
			statusselected = transitionBean.getStatus().trim();
//			transitionBean = transitionService
//					.getTransitionBeanIdKnkey(transitionBean);
			if (transitionBean.getStatusimple() != null)
				statusImplemSelected = transitionBean.getStatusimple().trim();
			else {
				statusImplemSelected = transitionBean.getStatusimple();
			}
			statusList = CommonActions.getStatusList(statusImplemSelected);
			status = statusImplemSelected;
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch(NullPointerException ex){
			ex.printStackTrace();
		}

	}

	public String AllDataClient() {
		try {
			UsuarioDto usuario = new UsuarioDto();
			ActionContext contexto = ActionContext.getContext();
			Map<String, Object> sesion = contexto.getSession();
			usuario = (UsuarioDto) sesion.get("usuarioSession");
			Map<String, Object> sesion2 = contexto.getSession();
			transitionBeanM = (TransitionBean) sesion2.get("Knkey");

			statusList.add("On Hold");
			statusList.add("On Going");
			statusList.add("Canceled");
			statusList.add("Closed");
			statusList.add("Completed");

			TransitionShared transitionShared = new TransitionShared();

			setClientInfo(transitionShared.GetDataFromSTK(transitionBeanM)
					.getCompanyname()
					+ " - "
					+ transitionShared.GetDataFromSTK(transitionBeanM)
							.getComercialname());
			AsignIfownerStkBean hghg = transitionShared
					.GetIfOwnerFromSTK(transitionBeanM);
			if (hghg != null) {
				setCorreoIfOwnerInfo(hghg.getIfownwer());
			}

			ClienteStkBean clienteStkBean = new ClienteStkBean();
			T_asignStkBean t_asignStkBean = new T_asignStkBean();

			ImplementationShared implementationShared = new ImplementationShared();

			clienteStkBean = implementationShared
					.GetAllDataFromClientesSTK(transitionBeanM.getKnkey());

			t_asignStkBean = implementationShared
					.GetIfOwnerFromSTK(transitionBeanM.getKnkey());

		} catch (CstF2Exception ex) {

			addFieldError("KnkeyIncorrecta",
					"Ocurrio un Error: " + ex.getMessage());
			return ERROR_SESSION;
		}
		return SUCCESS;
	}

	public String GetStatusFechaArchivoFromJoindocumenttransition() {
		try {
			UsuarioDto usuario = new UsuarioDto();
			ActionContext contexto = ActionContext.getContext();
			Map<String, Object> sesion = contexto.getSession();
			usuario = (UsuarioDto) sesion.get("usuarioSession");
			Map<String, Object> sesion2 = contexto.getSession();
			transitionBeanM = (TransitionBean) sesion2.get("Knkey");

			statusList.add("On Hold");
			statusList.add("On Going");
			statusList.add("Canceled");
			statusList.add("Closed");
			statusList.add("Completed");

			TransitionShared transitionShared = new TransitionShared();

			setClientInfo(transitionShared.GetDataFromSTK(transitionBeanM)
					.getCompanyname()
					+ " - "
					+ transitionShared.GetDataFromSTK(transitionBeanM)
							.getComercialname());
			AsignIfownerStkBean hghg = transitionShared
					.GetIfOwnerFromSTK(transitionBeanM);
			if (hghg != null) {
				setCorreoIfOwnerInfo(hghg.getIfownwer());
			}

			TransitionBean transitionBeanNew = new TransitionBean();

			ImplementationShared implementationShared = new ImplementationShared();
			JoindocumenttransitionBean joindocumenttransitionBean = new JoindocumenttransitionBean();

			transitionBeanNew = transitionShared
					.GetTransitionBeanIdKnkey(transitionBeanM);

			DocumentsBean documentsBean = new DocumentsBean();
			documentsBean = implementationShared.GetIdFromDocuments();

			joindocumenttransitionBean = implementationShared
					.GetStatusFechaArchivoFromJoindocumenttransition(
							transitionBeanNew.getId(), documentsBean.getId());

		} catch (CstF2Exception ex) {

			addFieldError("KnkeyIncorrecta",
					"Ocurrio un Error: " + ex.getMessage());
			return ERROR_SESSION;
		}
		return SUCCESS;
	}

	public String GetAllRestInforT_transition() {
		try {
			UsuarioDto usuario = new UsuarioDto();
			ActionContext contexto = ActionContext.getContext();
			Map<String, Object> sesion = contexto.getSession();
			usuario = (UsuarioDto) sesion.get("usuarioSession");
			Map<String, Object> sesion2 = contexto.getSession();
			transitionBeanM = (TransitionBean) sesion2.get("Knkey");

			statusList.add("On Hold");
			statusList.add("On Going");
			statusList.add("Canceled");
			statusList.add("Closed");
			statusList.add("Completed");

			TransitionShared transitionShared = new TransitionShared();

			setClientInfo(transitionShared.GetDataFromSTK(transitionBeanM)
					.getCompanyname()
					+ " - "
					+ transitionShared.GetDataFromSTK(transitionBeanM)
							.getComercialname());
			AsignIfownerStkBean hghg = transitionShared
					.GetIfOwnerFromSTK(transitionBeanM);
			if (hghg != null) {
				setCorreoIfOwnerInfo(hghg.getIfownwer());
			}

			TransitionBean transitionBeanNew = new TransitionBean();

			ImplementationShared implementationShared = new ImplementationShared();
			JoindocumenttransitionBean joindocumenttransitionBean = new JoindocumenttransitionBean();

			transitionBeanNew = transitionShared
					.GetTransitionBeanIdKnkey(transitionBeanM);
			TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
			transitionsBeanImp = implementationShared
					.GetAllRestInforT_transition(transitionBeanNew.getId());

		} catch (CstF2Exception ex) {

			addFieldError("KnkeyIncorrecta",
					"Ocurrio un Error: " + ex.getMessage());
			return ERROR_SESSION;
		}
		return SUCCESS;
	}
	
//	private void clienteGrid() throws SQLException{
//		boolean validaClientes = transitionService.validaExistenciaCliente(this.getUsuario().getId(), transitionBean.getId());
//		if(!validaClientes)
//			transitionService.InsertaClienteGrid(this.getUsuario().getId(), transitionBean.getId());
//	}

	public String insertStatusImplementation() {
		try{
			if(status.trim().toUpperCase().equals("COMPLETED")){
				changeStatus();
				
				TransitionBean statusImple = transitionService.getBothStatus(transitionBean.getId());
				if(statusImple.getStatus().toUpperCase().contains("COMPLETED")&&statusImple.getStatusimple().toUpperCase().contains("COMPLETED"))
					transitionService.deleteClient(transitionBean.getId());
			}
			else if (!status.trim().toUpperCase().equals("0")) {
				changeStatus();
			}
		}
		catch(SQLException e){
		}
		
		return SUCCESS;
	}
	
	public void changeStatus(){
		try{
			transitionBean.setStatus(status);
			transitionBean = transitionService
					.updateStatusEnImplementation(transitionBean, this
							.getUsuario().getUsername());
			statusImplemSelected = transitionBean.getStatusimple().trim();
			getLastUpdateEstatus();
			String comment = "Se Inserto un nuevo status implementation " + this.status;
			transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), comment, AccionesHistorico.CAMBIA_ESTATUS_IMPLEMENTATIOM));
//			clienteGrid();
		}catch(SQLException e){
			
		}
	}

	private void getLastUpdateEstatus() {
		this.setLastUpdateStatusImplementation(transitionBean
				.getLastUserUpdateEstatusImplementation()
				+ " - "
				+ transitionBean.getLastDateUpdateEstatusImplementation());
		if(lastUpdateStatusImplementation.equals(" - null"))
			lastUpdateStatusImplementation = "Unassigned Status";
	}

	public String UpdateStatusDocumentsCielID() {
		try {
			UsuarioDto usuario = new UsuarioDto();
			ActionContext contexto = ActionContext.getContext();
			Map<String, Object> sesion = contexto.getSession();
			usuario = (UsuarioDto) sesion.get("usuarioSession");
			Map<String, Object> sesion2 = contexto.getSession();
			transitionBeanM = (TransitionBean) sesion2.get("Knkey");

			statusList.add("On Hold");
			statusList.add("On Going");
			statusList.add("Canceled");
			statusList.add("Closed");
			statusList.add("Completed");

			TransitionShared transitionShared = new TransitionShared();
			setClientInfo(transitionShared.GetDataFromSTK(transitionBeanM)
					.getCompanyname()
					+ " - "
					+ transitionShared.GetDataFromSTK(transitionBeanM)
							.getComercialname());
			AsignIfownerStkBean hghg = transitionShared
					.GetIfOwnerFromSTK(transitionBeanM);
			if (hghg != null) {
				setCorreoIfOwnerInfo(hghg.getIfownwer());
			}

			TransitionBean transitionBeanNew = new TransitionBean();
			ImplementationShared implementationShared = new ImplementationShared();
			JoindocumenttransitionBean joindocumenttransitionBean = new JoindocumenttransitionBean();

			transitionBeanNew = transitionShared
					.GetTransitionBeanIdKnkey(transitionBeanM);
			transitionBeanM = transitionBeanNew;

			TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
			Date myfechamehodDate = transitionShared.GetTheDateTime();
			DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss dd/MM/yyyy");
			java.sql.Date date = null;
			// myfechamehodDate= dateFormat.format(myfechamehodDate);

			date = convertToSqlDate(myfechamehodDate);

			if (transitionsBeanImp.getCielid() == null) {
				transitionsBeanImp.setCielid(false);
			}
			// transitionsBeanImp=implementationShared.UpdateStatusDocumentsCielID(transitionBeanM.getId(),
			// transitionsBeanImp.getCielid(), date);

			execute();
		} catch (CstF2Exception ex) {

			addFieldError("KnkeyIncorrecta",
					"Ocurrio un Error: " + ex.getMessage());
			return ERROR_SESSION;
		}
		return SUCCESS;
	}

	public String UpdateStatusDocumentsCarrier() {
		try {
			UsuarioDto usuario = new UsuarioDto();
			ActionContext contexto = ActionContext.getContext();
			Map<String, Object> sesion = contexto.getSession();
			usuario = (UsuarioDto) sesion.get("usuarioSession");
			Map<String, Object> sesion2 = contexto.getSession();
			transitionBeanM = (TransitionBean) sesion2.get("Knkey");

			statusList.add("On Hold");
			statusList.add("On Going");
			statusList.add("Canceled");
			statusList.add("Closed");
			statusList.add("Completed");

			TransitionShared transitionShared = new TransitionShared();

			setClientInfo(transitionShared.GetDataFromSTK(transitionBeanM)
					.getCompanyname()
					+ " - "
					+ transitionShared.GetDataFromSTK(transitionBeanM)
							.getComercialname());
			AsignIfownerStkBean hghg = transitionShared
					.GetIfOwnerFromSTK(transitionBeanM);
			if (hghg != null) {
				setCorreoIfOwnerInfo(hghg.getIfownwer());
			}

			TransitionBean transitionBeanNew = new TransitionBean();

			ImplementationShared implementationShared = new ImplementationShared();
			JoindocumenttransitionBean joindocumenttransitionBean = new JoindocumenttransitionBean();

			transitionBeanNew = transitionShared
					.GetTransitionBeanIdKnkey(transitionBeanM);
			transitionBean = transitionBeanNew;

			transitionBean.setStatus(status);

			try {
				transitionService.updateStatusEnTransition(transitionBean,
						new Date(), "");
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

			TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
			Date myfechamehodDate = transitionShared.GetTheDateTime();
			DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss dd/MM/yyyy");
			java.sql.Date date = null;
			// myfechamehodDate= dateFormat.format(myfechamehodDate);

			date = convertToSqlDate(myfechamehodDate);
			if (transitionsBeanImp.getCarriercc() == null) {
				transitionsBeanImp.setCarriercc(false);
			}
			// transitionsBeanImp=implementationShared.UpdateStatusDocumentsCarrier(transitionBeanM.getId(),
			// transitionsBeanImp.getCielid(), date);

			setDateStatusTransitionsBean(implementationShared
					.GetDateOfStatusTransitions(transitionBean.getId()));
			dateBean = implementationShared
					.GetFechaOfStatusTransitions(transitionBeanM.getId());

		} catch (CstF2Exception ex) {

			addFieldError("KnkeyIncorrecta",
					"Ocurrio un Error: " + ex.getMessage());
			return ERROR_SESSION;
		}
		return SUCCESS;
	}

	public String impleJsp() {
		try {
			UsuarioDto usuario = new UsuarioDto();
			ActionContext contexto = ActionContext.getContext();
			Map<String, Object> sesion = contexto.getSession();
			usuario = (UsuarioDto) sesion.get("usuarioSession");
			Map<String, Object> sesion2 = contexto.getSession();
			transitionBeanM = (TransitionBean) sesion2.get("Knkey");

			statusList.add("On Hold");
			statusList.add("On Going");
			statusList.add("Canceled");
			statusList.add("Closed");
			statusList.add("Completed");

			TransitionShared transitionShared = new TransitionShared();

			setClientInfo(transitionShared.GetDataFromSTK(transitionBeanM)
					.getCompanyname()
					+ " - "
					+ transitionShared.GetDataFromSTK(transitionBeanM)
							.getComercialname());
			AsignIfownerStkBean hghg = transitionShared
					.GetIfOwnerFromSTK(transitionBeanM);
			if (hghg != null) {
				setCorreoIfOwnerInfo(hghg.getIfownwer());
			}

		} catch (CstF2Exception ex) {

			addFieldError("KnkeyIncorrecta",
					"Ocurrio un Error: " + ex.getMessage());
			return ERROR_SESSION;
		}

		return SUCCESS;
	}

	public String insertVoboCheckBox() {
		
		String dateCiel = "lastDateCielClient";
		String userCiel = "lastUserCielClient";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();

		if (intoCheckCiel) {// entro por check
			if (datePickerCiel.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsCielID(this.isCheckCielId(),
									FormatFecha.getFormatImple(new Date()), "",
									trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					transitionBean = implementationService
							.updateStatusDocumentsCielID(this.isCheckCielId(),
									FormatFecha.getFormatImple(new Date()),
									datePickerCiel, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.isCheckCielId())?"Check Ciel Client":"Uncheck Ciel Client", (this.isCheckCielId())?AccionesHistorico.CHECK_CIEL_CLIENT_IMPLEMENTATION:AccionesHistorico.UNCHECK_CIEL_CLIENT_IMPLEMENTATION));
				accionesLastUpdate(dateCiel, userCiel);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datePickerCiel.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerCiel);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
						transitionBean = implementationService
								.updateStatusDocumentsCielID(this.isCheckCielId(),
										dateCiel, FormatFecha.getFormatImple(date),
										trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePicker Ciel Client" , AccionesHistorico.UPDATE_DATEPICKER_CIEL_CLIENT));
					accionesLastUpdate(dateCiel, userCiel);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

		}

		return SUCCESS;
		

	}

	public static java.sql.Date convertToSqlDate(java.util.Date oDate) {
		return (new java.sql.Date(oDate.getTime()));
	}
	
	public void accionesLastUpdate(String campoDate, String campoCliente){
		Date fecha = new Date();
		
		if(implementationService.validaExistenciaActualizacion(transitionBean.getId()))
			implementationService.updateLastestUpdates(transitionBean.getId(), this.getUsuario(), fecha, campoDate, campoCliente);
		else
			implementationService.insertLastestUpdates(transitionBean.getId(), this.getUsuario(), fecha, campoDate, campoCliente);
		
		lastImplementationUpdates = implementationService.getLastestUpdates(transitionBean.getId());
	}

	public String insertVoboCheckBox1() {
		
		String dateOP = "lastDateClientOperationalProfile";
		String userOP = "lastUserClientOperationalProfile";

		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
				
		
		if (intoCheckCop) {// entro por check
			if (datepickerCop.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsCop(this.isCheckCop(),
									FormatFecha.getFormatImple(new Date()), "",
									trans);
					
				} catch (SQLException e) {
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					transitionBean = implementationService
							.updateStatusDocumentsCop(this.isCheckCop(),
									FormatFecha.getFormatImple(new Date()),
									datepickerCop, trans);
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.isCheckCop())?"Se activo Cop":"Se desactivo cop", (this.isCheckCop())?AccionesHistorico.CHECK_COP:AccionesHistorico.UNCHECK_COP));
				accionesLastUpdate(dateOP, userOP);
//				clienteGrid();
			} catch (SQLException e) {
				
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datepickerCop.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datepickerCop);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
						transitionBean = implementationService
								.updateStatusDocumentsCop(this.isCheckCop(),
										dateCop, FormatFecha.getFormatImple(date),
										trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datepicker Cop" , AccionesHistorico.UPDATE_DATE_PICKERCOP));
					accionesLastUpdate(dateOP, userOP);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

		}
		return SUCCESS;
	}

	public String insertVoboCheckBox2() {
		String dateContacts = "lastDateContacts";
		String userContacts = "lastUserContacts";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();

		if (intoCheckContacts) {// entro por check
			if (datePickerContacts.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsContacts(this.checkContacts,
									FormatFecha.getFormatImple(new Date()), "", trans);
//					insertVoboCheckBox2
					
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsContacts(this.checkContacts,
									FormatFecha.getFormatImple(new Date()), datePickerContacts, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}

			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkContacts)?"Check Contacts":"Uncheck Contacts", (this.checkContacts)?AccionesHistorico.CHECK_CONTACTS_IMPLEMENTATION:AccionesHistorico.UNCHECK_CONTACTS_IMPLEMENTATION));
				accionesLastUpdate(dateContacts, userContacts);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
		} else {// entro por calendario

				if (!datePickerContacts.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerContacts);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsContacts(this.checkContacts,
										dateContacts,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

				
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datepicker Contacts" , AccionesHistorico.UPDATE_DATE_PICKER_CONTACTS));
					accionesLastUpdate(dateContacts, userContacts);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

		}

		return SUCCESS;
	}

	public String insertVoboCheckBox3() {
		
		String dateReporting = "lastDateReporting";
		String userReporting = "lastUserReporting";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckReporting) {// entro por check
			if (datePickerReporting.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsReporting(this.checkReporting,
									FormatFecha.getFormatImple(new Date()), "", trans);
					
					
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsReporting(this.checkReporting,
									FormatFecha.getFormatImple(new Date()), datePickerReporting, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkReporting)?"Check Reporting":"Ucheck Reporting", (this.checkReporting)?AccionesHistorico.CHECK_REPORTING_IMPLEMENTATION:AccionesHistorico.UNCHECK_REPORTING_IMPLEMENTATION));
				accionesLastUpdate(dateReporting, userReporting);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datePickerReporting.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerReporting);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsReporting(this.checkReporting,
										dateReporting,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePicker Reporting" , AccionesHistorico.UPDATE_DATEPICKER_REPORTING));
					accionesLastUpdate(dateReporting, userReporting);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

		}
		return SUCCESS;
	}

	public String insertVoboCheckBox4() {
		String dateScope = "lastDateScopeOfService";
		String userScope = "lastUserScopeOfService";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckScopeService) {// entro por check
			if (datePickerScopeService.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsSos(this.checkScopeService,
									FormatFecha.getFormatImple(new Date()), "", trans);
							
										
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsSos(this.checkScopeService,
									FormatFecha.getFormatImple(new Date()), datePickerScopeService, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkScopeService)?"Check Scope Service":"Check Scope Service", (this.checkScopeService)?AccionesHistorico.CHECK_SCOPE_OF_SERVICE_IMPLEMENTATION:AccionesHistorico.CHECK_SCOPE_OF_SERVICE_IMPLEMENTATION));
				accionesLastUpdate(dateScope, userScope);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datePickerScopeService.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerScopeService);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsSos(this.checkScopeService,
										dateScopeService,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePicker Scope Service" , AccionesHistorico.UPDATE_DATEPICKER_SCOPE_SERVICE));
					accionesLastUpdate(dateScope, userScope);
//					clienteGrid();
				} catch (SQLException e) {
					e.printStackTrace();
				}
		}
		
	return SUCCESS;
	}

	public String insertVoboCheckBox5() {
		String dateConditions = "lastDateConditions";
		String userConditions = "lastUserConditions";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckConditions) {// entro por check
			if (datePickerConditions.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsConditions(this.checkConditions,
									FormatFecha.getFormatImple(new Date()), "", trans);
					
										
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsConditions(this.checkConditions,
									FormatFecha.getFormatImple(new Date()), datePickerConditions, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkConditions)?"Check Conditions":"Check Conditions", (this.checkConditions)?AccionesHistorico.CHECK_CONDITIONS_IMPLEMENTATION:AccionesHistorico.CHECK_CONDITIONS_IMPLEMENTATION));
				accionesLastUpdate(dateConditions, userConditions);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datePickerConditions.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerConditions);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsConditions(this.checkConditions,
										dateConditions,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				
				try {
					//error historial
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePicker Conditions" , AccionesHistorico.UPDATE_DATEPICKER_CONDITIONS));
					accionesLastUpdate(dateConditions, userConditions);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}


		}
		
	return SUCCESS;
	
	}

	public String insertVoboCheckBox6() {

		String dateQuotation = "lastDateCielQuotationModule";
		String userQuotation = "lastUserCielQuotationModule";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckCielQM) {// entro por check
			if (datePickerCielQM.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsCielQ(this.checkCQM,
									FormatFecha.getFormatImple(new Date()), "", trans);
				
					
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsCielQ(this.checkCQM,
									FormatFecha.getFormatImple(new Date()), datePickerCielQM, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkCQM)?"Check Ciel Quotation Module":"Check Ciel Quotation Module", (this.checkCQM)?AccionesHistorico.CHECK_CIEL_QUOTATION_MODULE_IMPLEMENTATION:AccionesHistorico.CHECK_CIEL_QUOTATION_MODULE_IMPLEMENTATION));
				accionesLastUpdate(dateQuotation, userQuotation);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datePickerCielQM.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerCielQM);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsCielQ(this.checkCQM,
										dateCielQM,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePicker Ciel Quotation Module" , AccionesHistorico.UPDATE_DATEPICKER_CIEL_QUOTATION_MODULE));
					accionesLastUpdate(dateQuotation, userQuotation);
//					clienteGrid();
				} catch (SQLException e) {
					e.printStackTrace();
				}


		}
		
	return SUCCESS;	
		
		
	
	}

	public String insertVoboCheckBox7() {
		
		String dateSheet = "lastDateCarrierChoiseSheet";
		String userSheet = "lastUserCarrierChoiseSheet";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckCC) {// entro por check
			if (datePickerCC.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsCarrier(this.checkCC,
									FormatFecha.getFormatImple(new Date()), "", trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkCC)?"Check Carrier Choise Sheet":"Check Carrier Choise Sheet", (this.checkCC)?AccionesHistorico.CHECK_CARRIER_CHOISE_SHEET_IMPLEMENTATION:AccionesHistorico.CHECK_CARRIER_CHOISE_SHEET_IMPLEMENTATION));
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsCarrier(this.checkCC,
									FormatFecha.getFormatImple(new Date()), datePickerCC, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}	
			accionesLastUpdate(dateSheet, userSheet);
//			try {
//				clienteGrid();
//			} catch (SQLException e) {
				// TODO Auto-generated catch block
//				e.printStackTrace();
//			}
		} else {// entro por calendario

				if (!datePickerCC.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerCC);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsCarrier(this.checkCC,
										dateCC,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePicker Carrier Choise Sheet" , AccionesHistorico.UPDATE_DATEPICKER_CARRIER_CHOISE_SHEET));
					accionesLastUpdate(dateSheet, userSheet);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

		}
		
	return SUCCESS;	

	}

	public String insertVoboCheckBox8() {
		
		String dateInstructions = "lastDateWorkingInstructions";
		String userInstructions = "lastUserWorkingInstructions";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckdateWorking) {// entro por check
			if (datePickerdateWorking.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsWorking(this.checkWorking,
									FormatFecha.getFormatImple(new Date()), "", trans);
					
				} catch (SQLException e) {
					e.printStackTrace();
				}
				
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkWorking)?"Check Working Instructions":"Check Working Instructions", (this.checkWorking)?AccionesHistorico.CHECK_WORKING_INSTRUCTIONS_IMPLEMENTATION:AccionesHistorico.CHECK_WORKING_INSTRUCTIONS_IMPLEMENTATION));
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsWorking(this.checkWorking,
									FormatFecha.getFormatImple(new Date()), datePickerdateWorking, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			accionesLastUpdate(dateInstructions, userInstructions);
//			try {
//				clienteGrid();
//			} catch (SQLException e) {
				// TODO Auto-generated catch block
//				e.printStackTrace();
//			}
		} else {// entro por calendario

				if (!datePickerdateWorking.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerdateWorking);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsWorking(this.checkWorking,
										dateWorking,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePickerdate Working Instructions" , AccionesHistorico.UPDATE_DATEPICKERDATE_WORKING_INSTRUCTIONS));
					accionesLastUpdate(dateInstructions, userInstructions);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

		}
		
	return SUCCESS;
		
		
		
		
		
	}

	public String insertVoboCheckBox9() {
		
		String dateProcedure = "lastDateStandarOperatingProcedure";
		String userProcedure = "lastUserStandarOperatingProcedure";
	
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckdateSOP) {// entro por check
			if (datePickerdateSOP.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsSop(this.checkSOP,
									FormatFecha.getFormatImple(new Date()), "", trans);
					
					
					
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsSop(this.checkSOP,
									FormatFecha.getFormatImple(new Date()), datePickerdateSOP, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkSOP)?"Check Standar Operating Procedure":"Check Standar Operating Procedure", (this.checkSOP)?AccionesHistorico.CHECK_STANDAR_OPERATING_PROCEDURE_IMPLEMENTATION:AccionesHistorico.CHECK_STANDAR_OPERATING_PROCEDURE_IMPLEMENTATION));
				accionesLastUpdate(dateProcedure, userProcedure);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datePickerdateSOP.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerdateSOP);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsSop(this.checkSOP,
										dateSOP,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePickerdate Standar Operating Procedure " , AccionesHistorico.UPDATE_DATEPICKERDATE_STANDAR_OPERATING_PROCEDURE));
					accionesLastUpdate(dateProcedure, userProcedure);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
		}
		
	return SUCCESS;
}

	public String insertVoboCheckBox10() {
		
		String datePerformance = "lastDateKeyPerformanceIndicators";
		String userPerformance = "lastUserKeyPerformanceIndicators";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckdateKPI) {// entro por check
			if (datePickerdateKPI.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsKpi(this.checkKPI,
									FormatFecha.getFormatImple(new Date()), "", trans);
					
					
					
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsKpi(this.checkKPI,
									FormatFecha.getFormatImple(new Date()), datePickerdateKPI, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			
			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkKPI)?"Check Key Performance Indicators":"Check Key Performance Indicators", (this.checkKPI)?AccionesHistorico.CHECK_KEY_PERFORMANCE_INDICATORS_IMPLEMENTATION:AccionesHistorico.CHECK_KEY_PERFORMANCE_INDICATORS_IMPLEMENTATION));
				accionesLastUpdate(datePerformance, userPerformance);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} else {// entro por calendario

				if (!datePickerdateKPI.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerdateKPI);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsKpi(this.checkKPI,
										dateKPI,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePickerdate Key Performance Indicators" , AccionesHistorico.UPDATE_DATEPICKERDATE_KEY_PERFORMANCE_INDICATORS));
					accionesLastUpdate(datePerformance, userPerformance);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
		}
		
	return SUCCESS;
		
	
	}

	public String insertVoboCheckBox11() {
		
		String dateBilling = "lastDateBillingConditions";
		String userBilling = "lastUserBillingConditions";
		
		TransitionBean trans = implementation.getTransition()
				.getTransitionBeanM();
		if (intoCheckdateBC) {// entro por check
			if (datePickerdateBC.equals("")) {// calendar null
				try {
					transitionBean = implementationService
							.updateStatusDocumentsBilling(this.checkBC,
									FormatFecha.getFormatImple(new Date()), "", trans);
					
					
					
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else {// hay algo en calendar
				try {
					
					transitionBean = implementationService
							.updateStatusDocumentsBilling(this.checkBC,
									FormatFecha.getFormatImple(new Date()), datePickerdateBC, trans);
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}

			try {
				transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(), (this.checkBC)?"Check Billing Conditions":"Check Billing Conditions", (this.checkBC)?AccionesHistorico.CHECK_BILLING_CONDITIONS_IMPLEMENTATION:AccionesHistorico.CHECK_BILLING_CONDITIONS_IMPLEMENTATION));
				accionesLastUpdate(dateBilling, userBilling);
//				clienteGrid();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		} else {// entro por calendario

				if (!datePickerdateBC.equals("")) {
					
				
					SimpleDateFormat formatter = new SimpleDateFormat(
							"yyy/MM/dd HH:mm");
					Date date = null;
					try {

						date = formatter.parse(datePickerdateBC);

					} catch (ParseException e) {
						e.printStackTrace();
					}

					try {
					   transitionBean = implementationService
								.updateStatusDocumentsBilling(this.checkBC,
										dateBC,  FormatFecha.getFormatImple(date), trans);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				try {
					transitionService.insertHistorico(new HistoricoDto(this.getUsuario().getId(), new Date(),"Update datePickerdate Billing Conditions" , AccionesHistorico.UPDATE_DATEPICKERDATE_BILLING_CONDITIONS));
					accionesLastUpdate(dateBilling, userBilling);
//					clienteGrid();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

		}
		
	return SUCCESS;
		
		
	
	}

	public String getLinks() {

		try {
			listaLinks = implementationService
					.getLinksTransition(transitionBean);
			System.out.println();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}

	public String addLink() {
		
		Date fechaLink = new Date();
		try {
			listaLinks = implementationService.insertLink(transitionBean, link,
					description, displayName);
			implementationService.updateLinks(transitionBean.getId(), usuario, fechaLink);
			lastUpdateLink = implementationService.getLastUpdateLinks(transitionBean.getId());
//			clienteGrid();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return SUCCESS;
	}

	public String getCompletionDate() {
		return SUCCESS;
	}

	public UsuarioDto getUsuario() {
		return usuario;
	}

	public void setUsuario(UsuarioDto usuario) {
		this.usuario = usuario;
	}

	public String getClientInfo() {
		return clientInfo;
	}

	public void setClientInfo(String clientInfo) {
		this.clientInfo = clientInfo;
	}

	public Transition getTransition() {
		return transition;
	}

	public void setTransition(Transition transition) {
		this.transition = transition;
	}

	public TransitionBean getTransitionBean() {
		return transitionBean;
	}

	public void setTransitionBean(TransitionBean transitionBean) {
		this.transitionBean = transitionBean;
	}

	public String getLastUpdateStatusImplementation() {
		return lastUpdateStatusImplementation;
	}

	public void setLastUpdateStatusImplementation(
			String lastUpdateStatusImplementation) {
		this.lastUpdateStatusImplementation = lastUpdateStatusImplementation;
	}

	public List<JoindocumenttransitionDts> getEstatusTransition() {
		return estatusTransition;
	}

	public void setEstatusTransition(
			List<JoindocumenttransitionDts> estatusTransition) {
		this.estatusTransition = estatusTransition;
	}

	public List<LinksDto> getListaLinks() {
		return listaLinks;
	}

	public void setListaLinks(List<LinksDto> listaLinks) {
		this.listaLinks = listaLinks;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public boolean isCheckCop() {
		return checkCop;
	}

	public void setCheckCop(boolean checkCop) {
		this.checkCop = checkCop;
	}

	public boolean isCheckContacts() {
		return checkContacts;
	}

	public void setCheckContacts(boolean checkContacts) {
		this.checkContacts = checkContacts;
	}

	public boolean isCheckReporting() {
		return checkReporting;
	}

	public void setCheckReporting(boolean checkReporting) {
		this.checkReporting = checkReporting;
	}

	public boolean isCheckScopeService() {
		return checkScopeService;
	}

	public void setCheckScopeService(boolean checkScopeService) {
		this.checkScopeService = checkScopeService;
	}

	public boolean isCheckConditions() {
		return checkConditions;
	}

	public void setCheckConditions(boolean checkConditions) {
		this.checkConditions = checkConditions;
	}

	public boolean isCheckCielId() {
		return checkCielId;
	}

	public void setCheckCielId(boolean checkCielId) {
		this.checkCielId = checkCielId;
	}

	public boolean isCheckCQM() {
		return checkCQM;
	}

	public void setCheckCQM(boolean checkCQM) {
		this.checkCQM = checkCQM;
	}

	public boolean isCheckCC() {
		return checkCC;
	}

	public void setCheckCC(boolean checkCC) {
		this.checkCC = checkCC;
	}

	public boolean isCheckWorking() {
		return checkWorking;
	}

	public void setCheckWorking(boolean checkWorking) {
		this.checkWorking = checkWorking;
	}

	public boolean isCheckSOP() {
		return checkSOP;
	}

	public void setCheckSOP(boolean checkSOP) {
		this.checkSOP = checkSOP;
	}

	public boolean isCheckKPI() {
		return checkKPI;
	}

	public void setCheckKPI(boolean checkKPI) {
		this.checkKPI = checkKPI;
	}

	public boolean isCheckBC() {
		return checkBC;
	}

	public void setCheckBC(boolean checkBC) {
		this.checkBC = checkBC;
	}

	public String getDateCop() {
		return dateCop;
	}

	public void setDateCop(String dateCop) {
		this.dateCop = dateCop;
	}

	public String getDatepickerCop() {
		return datepickerCop;
	}

	public void setDatepickerCop(String datepickerCop) {
		this.datepickerCop = datepickerCop;
	}

	public boolean isIntoCheckCop() {
		return intoCheckCop;
	}

	public void setIntoCheckCop(boolean intoCheckCop) {
		this.intoCheckCop = intoCheckCop;
	}

	public String getDateContacts() {
		return dateContacts;
	}

	public void setDateContacts(String dateContacts) {
		this.dateContacts = dateContacts;
	}

	public String getDatePickerContacts() {
		return datePickerContacts;
	}

	public void setDatePickerContacts(String datePickerContacts) {
		this.datePickerContacts = datePickerContacts;
	}

	public boolean isIntoCheckContacts() {
		return intoCheckContacts;
	}

	public void setIntoCheckContacts(boolean intoCheckContacts) {
		this.intoCheckContacts = intoCheckContacts;
	}

	public String getDateReporting() {
		return dateReporting;
	}

	public void setDateReporting(String dateReporting) {
		this.dateReporting = dateReporting;
	}

	public String getDatePickerReporting() {
		return datePickerReporting;
	}

	public void setDatePickerReporting(String datePickerReporting) {
		this.datePickerReporting = datePickerReporting;
	}

	public boolean isIntoCheckReporting() {
		return intoCheckReporting;
	}

	public void setIntoCheckReporting(boolean intoCheckReporting) {
		this.intoCheckReporting = intoCheckReporting;
	}

	public String getDateScopeService() {
		return dateScopeService;
	}

	public void setDateScopeService(String dateScopeService) {
		this.dateScopeService = dateScopeService;
	}

	public String getDatePickerScopeService() {
		return datePickerScopeService;
	}

	public void setDatePickerScopeService(String datePickerScopeService) {
		this.datePickerScopeService = datePickerScopeService;
	}

	public boolean isIntoCheckScopeService() {
		return intoCheckScopeService;
	}

	public void setIntoCheckScopeService(boolean intoCheckScopeService) {
		this.intoCheckScopeService = intoCheckScopeService;
	}

	public String getDateConditions() {
		return dateConditions;
	}

	public void setDateConditions(String dateConditions) {
		this.dateConditions = dateConditions;
	}

	public String getDatePickerConditions() {
		return datePickerConditions;
	}

	public void setDatePickerConditions(String datePickerConditions) {
		this.datePickerConditions = datePickerConditions;
	}

	public boolean isIntoCheckConditions() {
		return intoCheckConditions;
	}

	public void setIntoCheckConditions(boolean intoCheckConditions) {
		this.intoCheckConditions = intoCheckConditions;
	}

	public String getDateCiel() {
		return dateCiel;
	}

	public void setDateCiel(String dateCiel) {
		this.dateCiel = dateCiel;
	}

	public String getDatePickerCiel() {
		return datePickerCiel;
	}

	public void setDatePickerCiel(String datePickerCiel) {
		this.datePickerCiel = datePickerCiel;
	}

	public boolean isIntoCheckCiel() {
		return intoCheckCiel;
	}

	public void setIntoCheckCiel(boolean intoCheckCiel) {
		this.intoCheckCiel = intoCheckCiel;
	}

	public String getDateCielQM() {
		return dateCielQM;
	}

	public void setDateCielQM(String dateCielQM) {
		this.dateCielQM = dateCielQM;
	}

	public String getDatePickerCielQM() {
		return datePickerCielQM;
	}

	public void setDatePickerCielQM(String datePickerCielQM) {
		this.datePickerCielQM = datePickerCielQM;
	}

	public boolean isIntoCheckCielQM() {
		return intoCheckCielQM;
	}

	public void setIntoCheckCielQM(boolean intoCheckCielQM) {
		this.intoCheckCielQM = intoCheckCielQM;
	}

	public String getDateCC() {
		return dateCC;
	}

	public void setDateCC(String dateCC) {
		this.dateCC = dateCC;
	}

	public String getDatePickerCC() {
		return datePickerCC;
	}

	public void setDatePickerCC(String datePickerCC) {
		this.datePickerCC = datePickerCC;
	}

	public boolean isIntoCheckCC() {
		return intoCheckCC;
	}

	public void setIntoCheckCC(boolean intoCheckCC) {
		this.intoCheckCC = intoCheckCC;
	}

	public String getDateWorking() {
		return dateWorking;
	}

	public void setDateWorking(String dateWorking) {
		this.dateWorking = dateWorking;
	}

	public String getDatePickerdateWorking() {
		return datePickerdateWorking;
	}

	public void setDatePickerdateWorking(String datePickerdateWorking) {
		this.datePickerdateWorking = datePickerdateWorking;
	}

	public boolean isIntoCheckdateWorking() {
		return intoCheckdateWorking;
	}

	public void setIntoCheckdateWorking(boolean intoCheckdateWorking) {
		this.intoCheckdateWorking = intoCheckdateWorking;
	}

	public String getDateSOP() {
		return dateSOP;
	}

	public void setDateSOP(String dateSOP) {
		this.dateSOP = dateSOP;
	}

	public String getDatePickerdateSOP() {
		return datePickerdateSOP;
	}

	public void setDatePickerdateSOP(String datePickerdateSOP) {
		this.datePickerdateSOP = datePickerdateSOP;
	}

	public boolean isIntoCheckdateSOP() {
		return intoCheckdateSOP;
	}

	public void setIntoCheckdateSOP(boolean intoCheckdateSOP) {
		this.intoCheckdateSOP = intoCheckdateSOP;
	}

	public String getDateKPI() {
		return dateKPI;
	}

	public void setDateKPI(String dateKPI) {
		this.dateKPI = dateKPI;
	}

	public String getDatePickerdateKPI() {
		return datePickerdateKPI;
	}

	public void setDatePickerdateKPI(String datePickerdateKPI) {
		this.datePickerdateKPI = datePickerdateKPI;
	}

	public boolean isIntoCheckdateKPI() {
		return intoCheckdateKPI;
	}

	public void setIntoCheckdateKPI(boolean intoCheckdateKPI) {
		this.intoCheckdateKPI = intoCheckdateKPI;
	}

	public String getDateBC() {
		return dateBC;
	}

	public void setDateBC(String dateBC) {
		this.dateBC = dateBC;
	}

	public String getDatePickerdateBC() {
		return datePickerdateBC;
	}

	public void setDatePickerdateBC(String datePickerdateBC) {
		this.datePickerdateBC = datePickerdateBC;
	}

	public boolean isIntoCheckdateBC() {
		return intoCheckdateBC;
	}

	public void setIntoCheckdateBC(boolean intoCheckdateBC) {
		this.intoCheckdateBC = intoCheckdateBC;
	}
	
}
